package demo1_i;

public class Dog extends Animial{

    static{
        System.out.println("静态代码块执行Dog");
    }
    {
        System.out.println("实例代码块执行Dog");
    }

    public Dog(String name, int age) {
        super(name, age);
        System.out.println("构造方法执行Dog");
    }

    public void bark(){
        System.out.println(this.name + "汪汪汪");
    }


}
